package com.lvmama.pangolin.hotel.service;

import com.lvmama.pangolin.core.BaseService;
import com.lvmama.pangolin.entity.CommodityConditionVO;
import com.lvmama.pangolin.entity.InputCommodityVO;
import com.lvmama.pangolin.entity.hotel.HotelCdetail;
import com.lvmama.pangolin.entity.hotel.HotelCommodityDetail;
import com.lvmama.pangolin.entity.hotel.HotelCommodityDetailError;

import java.util.List;
import java.util.Map;


/**
 * Created by zhoutianqi on 2017/08/15.
 */
public interface HotelCommodityDetailService extends BaseService<HotelCommodityDetail> {
    public int saveCdetail(HotelCdetail t);

    public int updateByCdetail(HotelCdetail t);

    public int deleteByProdMap(Map<String, String> param);

    public void setIsLinkd(String companyCode, String productId, String commodityId);

    public void deleteLinkd(String companyCode, String productId, String commodityId);

    public List<HotelCommodityDetail> findByCommVO(CommodityConditionVO co);

    public List<HotelCommodityDetail> findByProdCommName(String productId, String commodityName, String companyCode);

    public HotelCommodityDetail findByProdCommId(String productId, String commodityId, String companyCode);

    public List<HotelCommodityDetail> findByInputCommodityVO(InputCommodityVO co);

    public int updateByProdCommId(HotelCommodityDetailError hotel);

    public int updateByObject(HotelCommodityDetailError hotel);

    public int insert(HotelCommodityDetailError hotel);
}
